//
//  TZYAboutViewController.m
//  Moment
//
//  Created by dllo on 16/1/4.
//  Copyright © 2016年 片刻. All rights reserved.
//

#import "TZYAboutViewController.h"

@interface TZYAboutViewController ()

@end

@implementation TZYAboutViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.navigationItem.title = @"关于我们";
    [self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"pk.jpg"]]];
  
    
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 200, SCREEN_WIDTH, SCREEN_HEIGHT - 300)];
    label.text = @"\n在阿尔卑斯山一处风景秀美却也极为险峻的山路转弯处，经常发生事故，可即使如此，来往的车辆依旧疾驰而过，不断更换的警示牌也没有起到任何作用，直到有一天那里立起一块木牌，写着“慢慢走，欣赏啊”，人们才猛然惊觉，原来只记得埋头赶路，竟忘了看看这满目秀丽。\n\n人生何尝不是如此？\n\n有时我们也想屏蔽喧嚣，虽然四周车水马龙；有时我们也会厌倦忙碌，尽管路人行色匆匆。\n\n只有我们自己知道，世界有多浮躁，你的心就有多安静。\n\n当社交网络的信息越来越疯狂的涌入你的生活，你是否也想关掉它，给内心腾出一片空间，思考、书写、聆听、欣赏……\n\n这世上有和你一样渴望宁静的人，他们正在这里，倾听时间，书写生活。\n\n请停下内心的匆忙，在转弯处休息片刻。";
    label.textColor = [UIColor blueColor];
    [self.view addSubview:label];
    
    
    
    
    
    
    UIImage *image = [UIImage imageNamed:@"back.png"];
    image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:image style:UIBarButtonItemStyleDone target:self action:@selector(leftButtonAction:)];
    
}


- (void)leftButtonAction:(UIBarButtonItem *)sender
{
    [self.navigationController popViewControllerAnimated:YES];
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
